class Demo(name: String,age: Int){
  def getInfo(): Unit = {
    print(name+""+age+""+Demo.dept)
  }
}

object Demo {
  val dept:String="架构组"
  def main(args: Array[String]): Unit = {
    new Demo("刘礼", 21).getInfo()
  }
}

